package cn.water.luban.demo.stock.main.mapper;

import cn.water.demo.luban.protocol.stock.dos.StockDO;
import cn.water.demo.luban.protocol.stock.dos.StockLogDO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface StockMapper {
    // 修改(减少)指定商品库存数的方法

    int updateStockCount(StockDO stockDO);

    int insertStockLog(StockLogDO stockLogDO);

    Integer countByStockLogOrderSn(String orderSn);
}
